<div class="span1">
    <!--side bar-->
    <aside class="side-left" style="top: 60px;">
        <ul class="sidebar">

            <?php // ====== start dashboard & options & pages & sms ?>
            <li class="first <?= (in_array(get_segment(2), array('dashboard', 'options', 'sms_system', 'spages',''))) ? 'active' : '' ?>"> <!--always define class .first for first-child of li element sidebar left-->
                <a href="<?= base_url() . ADMIN_FOLDER ?>" title="<?= lang('label_menu_link_dashboard') ?>">
                    <div class="helper-font-24">
                        <i class="icofont-dashboard"></i>
                    </div>
                    <span class="sidebar-text"><?= lang('label_menu_link_dashboard') ?></span>
                </a>
                <ul class="sub-sidebar-form corner-top shadow-white">
                    <li>
                        <a href="<?= base_url() . ADMIN_FOLDER ?>" title="<?= lang('label_menu_link_dashboard') ?>" class="corner-all">
                            <i class="icofont-dashboard"></i>
                            <span class="sidebar-text"><?= lang('label_menu_link_dashboard') ?></span>
                        </a>
                    </li>
                    <li>
                        <a href="<?= base_url() . ADMIN_FOLDER ?>/options" title="<?= lang('label_menu_link_options') ?>" class="corner-all">
                            <i class="icofont-cogs"></i>
                            <span class="sidebar-text"><?= lang('label_menu_link_options') ?></span>
                        </a>
                    </li>
                    <li>
                        <a href="<?= base_url() . ADMIN_FOLDER ?>/spages" title="<?= lang('label_menu_link_spages') ?>" class="corner-all">
                            <i class="icofont-file"></i>
                            <span class="sidebar-text"><?= lang('label_menu_link_spages') ?></span>
                        </a>
                    </li>
                    <li>
                        <a href="<?= base_url() . ADMIN_FOLDER ?>/sms_system" title="<?= lang('label_menu_link_sms_system') ?>" class="corner-all">
                            <i class="icofont-phone-sign"></i>
                            <span class="sidebar-text"><?= lang('label_menu_link_sms_system') ?></span>
                        </a>
                    </li>

                </ul>
            </li>
<?php // ====== end dashboard & options & pages &sms ?>
            
            <li class="<?= (in_array(get_segment(2), array('users', 'addressbooks', 'userswallet'))) ? 'active' : '' ?>"> 
                <a href="<?= base_url() . ADMIN_FOLDER ?>/users" title="<?= lang('label_menu_link_users') ?>">
                    <div class="helper-font-24">
                        <i class="icofont-user"></i>
                    </div>
                    <span class="sidebar-text"><?= lang('label_menu_link_users') ?></span>
                </a>
                <ul class="sub-sidebar-form corner-top shadow-white">
                    <li>
                        <a href="<?= base_url() . ADMIN_FOLDER ?>/users" title="<?= lang('label_menu_link_users') ?>" class="corner-all">
                            <i class="icofont-user"></i>
                            <span class="sidebar-text"><?= lang('label_menu_link_users') ?></span>
                        </a>
                    </li>
                    <li>
                        <a href="<?= base_url() . ADMIN_FOLDER ?>/addressbooks" title="<?= lang('label_menu_link_addressbooks') ?>" class="corner-all">
                            <i class="icofont-file"></i>
                            <span class="sidebar-text"><?= lang('label_menu_link_addressbooks') ?></span>
                        </a>
                    </li>
                    <li>
                        <a href="<?= base_url() . ADMIN_FOLDER ?>/userswallet" title="<?= lang('label_menu_link_userswallet') ?>" class="corner-all">
                            <i class="icofont-money"></i>
                            <span class="sidebar-text"><?= lang('label_menu_link_userswallet') ?></span>
                        </a>
                    </li>
                    <li>
                        <a href="<?= base_url() . ADMIN_FOLDER ?>/cases" title="<?= lang('label_menu_link_cases') ?>" class="corner-all">
                            <i class="icofont-user"></i>
                            <span class="sidebar-text"><?= lang('label_menu_link_cases') ?></span>
                        </a>
                    </li>
                    <li>
                        <a href="javascript:void(0)" title="<?= lang('label_menu_link_trash') ?>" class="corner-all">
                            <i class="icofont-trash"></i>
                            <span class="sidebar-text"><?= lang('label_menu_link_trash') ?></span>
                        </a>
                        <ul class="sub-sidebar-form corner-top shadow-white">
                            <li>
                                <a href="<?= base_url() . ADMIN_FOLDER ?>/users/trash" title="<?= lang('label_menu_link_users') ?>" class="corner-all">
                                    <i class="icofont-user"></i>
                                    <span class="sidebar-text"><?= lang('label_menu_link_users') ?></span>
                                </a>
                            </li>
                            <li>
                                <a href="<?= base_url() . ADMIN_FOLDER ?>/addressbooks/trash" title="<?= lang('label_menu_link_addressbooks') ?>" class="corner-all">
                                    <i class="icofont-file"></i>
                                    <span class="sidebar-text"><?= lang('label_menu_link_addressbooks') ?></span>
                                </a>
                            </li>
                            <li>
                                <a href="<?= base_url() . ADMIN_FOLDER ?>/cases/trash" title="<?= lang('label_menu_link_cases') ?>" class="corner-all">
                                    <i class="icofont-file"></i>
                                    <span class="sidebar-text"><?= lang('label_menu_link_cases') ?></span>
                                </a>
                            </li>

                        </ul>
                    </li>

                </ul>
            </li>
            <?php // ====== end users ?>
            
            <?php // ====== start Categories & trades ?>
            <li class="<?= (in_array(get_segment(2), array('categories', 'trades'))) ? 'active' : '' ?>"> 
                <a href="javascript:void(0)" title="<?= lang('label_menu_link_categories').' & '.lang('label_menu_link_trades') ?>">
                    <div class="helper-font-24">
                        <i class="icofont-list"></i>
                    </div>
                    <span class="sidebar-text"><?= lang('label_menu_link_categories').' & '.lang('label_menu_link_trades') ?></span>
                </a>
                <ul class="sub-sidebar-form corner-top shadow-white">
                    <li>
                        <a href="<?= base_url() . ADMIN_FOLDER ?>/categories" title="<?= lang('label_menu_link_categories') ?>" class="corner-all">
                            <i class="icofont-list-ol"></i>
                            <span class="sidebar-text"><?= lang('label_menu_link_categories') ?></span>
                        </a>
                    </li>
                    <li>
                        <a href="<?= base_url() . ADMIN_FOLDER ?>/trades" title="<?= lang('label_menu_link_trades') ?>" class="corner-all">
                            <i class="icofont-list-ol"></i>
                            <span class="sidebar-text"><?= lang('label_menu_link_trades') ?></span>
                        </a>
                    </li>
                    <li>
                        <a href="javascript:void(0)" title="<?= lang('label_menu_link_trash') ?>" class="corner-all">
                            <i class="icofont-trash"></i>
                            <span class="sidebar-text"><?= lang('label_menu_link_trash') ?></span>
                        </a>
                        <ul class="sub-sidebar-form corner-top shadow-white">
                            <li>
                                <a href="<?= base_url() . ADMIN_FOLDER ?>/categories/trash" title="<?= lang('label_menu_link_categories') ?>" class="corner-all">
                                    <i class="icofont-list-ol"></i>
                                    <span class="sidebar-text"><?= lang('label_menu_link_categories') ?></span>
                                </a>
                            </li>
                            <li>
                                <a href="<?= base_url() . ADMIN_FOLDER ?>/trades/trash" title="<?= lang('label_menu_link_trades') ?>" class="corner-all">
                                    <i class="icofont-list-ol"></i>
                                    <span class="sidebar-text"><?= lang('label_menu_link_trades') ?></span>
                                </a>
                            </li>

                        </ul>
                    </li>

                </ul>
            </li>
            <?php // ====== end Categories & trades ?>
            
            <?php // ====== start Banks & Shiping ?>
            <li class="<?= (in_array(get_segment(2), array('banks', 'shiping'))) ? 'active' : '' ?>"> 
                <a href="javascript:void(0)" title="<?= lang('label_menu_link_banks').' & '.lang('label_menu_link_shiping') ?>">
                    <div class="helper-font-24">
                        <i class="icofont-briefcase"></i>
                    </div>
                    <span class="sidebar-text"><?= lang('label_menu_link_banks').' & '.lang('label_menu_link_shiping') ?></span>
                </a>
                <ul class="sub-sidebar-form corner-top shadow-white">
                    <li>
                        <a href="<?= base_url() . ADMIN_FOLDER ?>/banks" title="<?= lang('label_menu_link_banks') ?>" class="corner-all">
                            <i class="icofont-money"></i>
                            <span class="sidebar-text"><?= lang('label_menu_link_banks') ?></span>
                        </a>
                    </li>
                    <li>
                        <a href="<?= base_url() . ADMIN_FOLDER ?>/shiping" title="<?= lang('label_menu_link_shiping') ?>" class="corner-all">
                            <i class="icofont-truck"></i>
                            <span class="sidebar-text"><?= lang('label_menu_link_shiping') ?></span>
                        </a>
                    </li>
                    <li>
                        <a href="javascript:void(0)" title="<?= lang('label_menu_link_trash') ?>" class="corner-all">
                            <i class="icofont-trash"></i>
                            <span class="sidebar-text"><?= lang('label_menu_link_trash') ?></span>
                        </a>
                        <ul class="sub-sidebar-form corner-top shadow-white">
                            <li>
                                <a href="<?= base_url() . ADMIN_FOLDER ?>/banks/trash" title="<?= lang('label_menu_link_banks') ?>" class="corner-all">
                                    <i class="icofont-money"></i>
                                    <span class="sidebar-text"><?= lang('label_menu_link_banks') ?></span>
                                </a>
                            </li>
                            <li>
                                <a href="<?= base_url() . ADMIN_FOLDER ?>/shiping/trash" title="<?= lang('label_menu_link_shiping') ?>" class="corner-all">
                                    <i class="icofont-truck"></i>
                                    <span class="sidebar-text"><?= lang('label_menu_link_shiping') ?></span>
                                </a>
                            </li>

                        </ul>
                    </li>

                </ul>
            </li>
            <?php // ====== end Banks & Shiping ?>

            <li class="<?= (in_array(get_segment(2), array('cities'))) ? 'active' : '' ?>">
                <a href="<?= base_url() . ADMIN_FOLDER ?>/cities" title="<?= lang('label_menu_link_cities') ?>">
                    <div class="helper-font-24">
                        <i class="icofont-adjust"></i>
                    </div>
                    <span class="sidebar-text"><?= lang('label_menu_link_cities') ?></span>
                </a>
                <ul class="sub-sidebar-form corner-top shadow-white">
                    <li>
                        <a href="<?= base_url() . ADMIN_FOLDER ?>/cities" title="<?= lang('label_menu_link_cities') ?>" class="corner-all">
                            <i class="icofont-adjust"></i>
                            <span class="sidebar-text"><?= lang('label_menu_link_cities') ?></span>
                        </a>
                    </li>
                    <li>
                        <a href="<?= base_url() . ADMIN_FOLDER ?>/cities/trash" title="<?= lang('label_menu_link_trash') ?>" class="corner-all">
                            <i class="icofont-trash"></i>
                            <span class="sidebar-text"><?= lang('label_menu_link_trash') ?></span>
                        </a>
                    </li>

                </ul>
            </li>

            <li class="<?= (in_array(get_segment(2), array('invoicies'))) ? 'active' : '' ?>">
                <a href="<?= base_url() . ADMIN_FOLDER ?>/invoicies" title="<?= lang('label_menu_link_invoicies') ?>">
                    <div class="helper-font-24">
                        <i class="icofont-list-ul"></i>
                    </div>
                    <span class="sidebar-text"><?= lang('label_menu_link_invoicies') ?></span>
                </a>
            </li>
            
            <li class="<?= (in_array(get_segment(2), array('stores'))) ? 'active' : '' ?>">
                <a href="<?= base_url() . ADMIN_FOLDER ?>/stores" title="<?= lang('label_menu_link_stores') ?>">
                    <div class="helper-font-24">
                        <i class="icofont-shopping-cart"></i>
                    </div>
                    <span class="sidebar-text"><?= lang('label_menu_link_stores') ?></span>
                </a>
            </li>

            <li class="<?= (in_array(get_segment(2), array('packages'))) ? 'active' : '' ?>"> 
                <a href="<?= base_url() . ADMIN_FOLDER ?>/packages" title="<?= lang('label_menu_link_packages') ?>">
                    <div class="helper-font-24">
                        <i class="icofont-tasks"></i>
                    </div>
                    <span class="sidebar-text"><?= lang('label_menu_link_packages') ?></span>
                </a>
                <ul class="sub-sidebar-form corner-top shadow-white">
                    <li>
                        <a href="<?= base_url() . ADMIN_FOLDER ?>/packages" title="<?= lang('label_menu_link_packages') ?>" class="corner-all">
                            <i class="icofont-tasks"></i>
                            <span class="sidebar-text"><?= lang('label_menu_link_packages') ?></span>
                        </a>
                    </li>
                    <li>
                        <a href="<?= base_url() . ADMIN_FOLDER ?>/packages/trash" title="<?= lang('label_menu_link_trash') ?>" class="corner-all">
                            <i class="icofont-trash"></i>
                            <span class="sidebar-text"><?= lang('label_menu_link_trash') ?></span>
                        </a>
                    </li>

                </ul>
            </li>

            <li class="<?= (in_array(get_segment(2), array('advertise', 'sliders'))) ? 'active' : '' ?>">
                <a href="javascript:void(0)" title="<?= lang('label_menu_link_advertise') ?>">
                    <div class="helper-font-24">
                        <i class="icofont-credit-card"></i>
                    </div>
                    <span class="sidebar-text"><?= lang('label_menu_link_advertise') ?></span>
                </a>
                <ul class="sub-sidebar-form corner-top shadow-white">
                    <li>
                        <a href="<?= base_url() . ADMIN_FOLDER ?>/advertise" title="<?= lang('label_menu_link_advertise') ?>" class="corner-all">
                            <i class="icofont-credit-card"></i>
                            <span class="sidebar-text"><?= lang('label_menu_link_advertise') ?></span>
                        </a>
                    </li>
                    <li>
                        <a href="<?= base_url() . ADMIN_FOLDER ?>/sliders" title="<?= lang('label_menu_link_sliders') ?>" class="corner-all">
                            <i class="icofont-credit-card"></i>
                            <span class="sidebar-text"><?= lang('label_menu_link_sliders') ?></span>
                        </a>
                    </li>
                    <li>
                        <a href="javascript:void(0)" title="<?= lang('label_menu_link_trash') ?>" class="corner-all">
                            <i class="icofont-trash"></i>
                            <span class="sidebar-text"><?= lang('label_menu_link_trash') ?></span>
                        </a>
                        <ul class="sub-sidebar-form corner-top shadow-white">
                            <li>
                                <a href="<?= base_url() . ADMIN_FOLDER ?>/advertise/trash" title="<?= lang('label_menu_link_advertise') ?>" class="corner-all">
                                    <i class="icofont-user"></i>
                                    <span class="sidebar-text"><?= lang('label_menu_link_advertise') ?></span>
                                </a>
                            </li>
                            <li>
                                <a href="<?= base_url() . ADMIN_FOLDER ?>/sliders/trash" title="<?= lang('label_menu_link_sliders') ?>" class="corner-all">
                                    <i class="icofont-file"></i>
                                    <span class="sidebar-text"><?= lang('label_menu_link_sliders') ?></span>
                                </a>
                            </li>

                        </ul>
                    </li>
                </ul>
            </li>
        </ul>
    </aside><!--/side bar -->
</div>